#include <iostream>

using namespace std;
void uslovnaya_funk(int chislo); //прототип функции

int main()
{
    int chislo; // объявляем переменную
    cout << "Vvedite chislo ot 100 do 999:"; //выводим сообщение
    cin >> chislo; // вводим значние переменной
    cout << endl << "Vashe chislo - ";

     /*  if ((chislo<100)||(chislo>999)) cout<<"Ne udovletvoryet usloviu";
    else {*/
    
    switch (chislo/100) // используем оператор switch
    {

    case 1: cout << "sto ";        break;
    case 2: cout << "dvesti " ;    break;
    case 3: cout << "trista ";     break;
    case 4: cout << "chetiresta "; break;
    case 5: cout << "pyatsot ";    break;
    case 6: cout <<"shestsot ";    break;
    case 7: cout <<"semsot ";      break;
    case 8: cout <<"vosemsot ";    break;
    case 9: cout <<"devyatsot ";   break;

    }

    if ((chislo%100)/20>=1) // используем условный оператор
    {
    switch ((chislo%100)/10)
    {

    case 2: cout << "dvadtsat ";    break;
    case 3: cout << "tridsat ";     break;
    case 4: cout << "sorok ";       break;
    case 5: cout << "pyatdesyat ";  break;
    case 6: cout << "shestdesyat "; break;
    case 7: cout << "semdesyat ";   break;
    case 8: cout << "vosemdesyat "; break;
    case 9: cout << "devyanosto ";  break;

    }

    switch (chislo%10)
    {
        case 1: cout << "odin."; break;
        case 2: cout << "dva.";  break;
        case 3: cout << "tri."; break;
        case 4: cout << "chetire."; break;
        case 5: cout << "pyat."; break;
        case 6: cout << "shest."; break;
        case 7: cout << "sem."; break;
        case 8: cout << "vosem."; break;
        case 9: cout << "devyat."; break;
    }
    }
    else
        uslovnaya_funk(chislo); //вызываем функцию

*/}*/

    return 0;
}

void uslovnaya_funk(int chislo) // тело функции
{
    if((chislo%100)/20<1)

    switch (chislo%100)
    {
        case 1: cout << "odin."; break;
        case 2: cout << "dva.";  break;
        case 3: cout << "tri."; break;
        case 4: cout << "chetire."; break;
        case 5: cout << "pyat."; break;
        case 6: cout << "shest."; break;
        case 7: cout << "sem."; break;
        case 8: cout << "vosem."; break;
        case 9: cout << "devyat."; break;
        case 10: cout << "desyat."; break;
        case 11: cout << "odinadcat."; break;
        case 12: cout << "dvenadcat."; break;
        case 13: cout << "trinadcat."; break;
        case 14: cout << "chetarnadcat."; break;
        case 15: cout << "pyatnadcat."; break;
        case 16: cout << "shestnadcat."; break;
        case 17: cout << "semnadcat."; break;
        case 18: cout << "vosemnadcat."; break;
        case 19: cout << "devyatnadcat."; break;
    }

}
//Прекрасная программа, все верно, но, опять же, не учтен вариант случайного ввода пользователем числа не из диапозона от 100 до 999
//Добавления помечены /**/
//Строчка номер 70 лишняя